package com.qidian.mes.dv.mapper;

import com.qidian.mes.pojo.MachineryType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 陆雯城
 * @Description
 * @Time 2024-04-11 16:05
 */
public interface MachineryTypeMapper {
    int deleteByMachineryTypeId(Long machineryTypeId);
    int insertMachineryType(MachineryType machineryType);
    int updateHasChildrenByMachineryTypeId(Long machineryTypeId);
    int updateHasChildrenFalseByMachineryTypeId(Long machineryTypeId);
    int updateMachineryType(MachineryType machineryType);
    List<String> selectMachineryTypeNames();
    //List<MachineryType> selectByParentTypeId(@Param("parentTypeId")Long parentTypeId, @Param("machineryTypeName") String machineryTypeName,@Param("enableStatus") Integer enableStatus);
    List<MachineryType> selectByParentTypeId(MachineryType machineryType);
    List<MachineryType> selectAll();
    MachineryType selectByMachineryTypeName(String machineryTypeName);
    MachineryType selectByMachineryTypeCode(String machineryTypeCode);
    MachineryType selectByMachineryTypeId(Long machineryTypeId);
    Long selectIdByMachineryTypeName(String machineryTypeName);
    int selectParentIdCountByMachineryTypeId(Long machineryTypeId);
}
